package com.yxy.springcloud.framework.unionauth.vo;

import com.yxy.springcloud.framework.unionauth.model.AdminUser;
import com.yxy.springcloud.framework.unionauth.model.AuthAdminUser;
import com.yxy.springcloud.framework.unionauth.model.Tenant;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

/**
 * app 用户登录后返回的vo
 */
@Data
public class AppLoginUserVO extends AdminUser {
  private ArrayList<String> roles = new ArrayList<>();//用户角色列表
  private Set<Tenant> tenantList = new HashSet<>();//用户在此app下所属的租户列表
  private Set<String> permissionCodes = new HashSet<>();//用户对应角色,进而对应权限
}
